package top.lishuoboy.knife4j.openapi3.sb3.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.lishuoboy.knife4j.openapi3.sb3.entry.User;


/**
 * 用户管理
 *
 * @author 李硕
 */
//@Tag(description = "用户管理")
@RestController
@RequestMapping("user")
public class MyUserController {

    /**
     * 获取用户
     *
     * @param id 用户ID
     *
     * @return 1个用户
     * @author 李硕
     */
//    @Operation(summary = "获取用户", description = "获取用户")
//    @ApiResponse(responseCode = "200", description = "1个用户")
    @PostMapping("/save")
    public User save(/*@Parameter(description = "用户ID") */Integer id, @RequestBody User user) {
        return User.builder().id(1).userName("张三").build();
    }

}